home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
Book Chapters
/
11 - Porting
/
Sample Code
/
ErrCheck.h
< prev
next >
Wrap
Text File
|
1995-03-28
|
903b
|
18 lines
/************************************************************************************
* *
* ErrCheck.h *
* *
* ©1995 Douglas Grounds. All Rights Reserved. *
* *
* This file contains error checking functions which makes checking for resource, *
* memory and other error conditions much simpler. Examples are given for the *
* use of each function. *
* *
************************************************************************************/
void notifyOfError (char *routineName, char *caller, short errValue,
Boolean isFatal);
Boolean checkResError (Handle h);
Boolean checkMemError (void *myPointerOrHandle);
Boolean checkOSErr (OSErr err);